package com.gopay.common.domain.sensitiveInfo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 
 * @author princezhaoyt
 * 敏感信息密文明文字典表，做应急使用
 *
 */
@Entity
@Table(name = "CIPHER_DIC_BATCH")
public class CipheredDicBatch implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	//id
	private int id;
	//密文
	private String cipherContext;
	//明文
	private String context;
	
	@Id
	@SequenceGenerator(name = "cipherDicSequence", sequenceName = "CIPHER_DIC_BATCH_SEQ")
    @GeneratedValue(generator = "cipherDicSequence", strategy = GenerationType.SEQUENCE)
	@Column(name = "ID", unique = true, nullable = false)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	@Column(name = "CIPHER_CONTEXT",  nullable = false, length = 150, unique = true)
	public String getCipherContext() {
		return cipherContext;
	}
	public void setCipherContext(String cipherContext) {
		this.cipherContext = cipherContext;
	}
	
	@Column(name = "CONTEXT",  nullable = false, length = 150)
	public String getContext() {
		return context;
	}
	public void setContext(String context) {
		this.context = context;
	}
	
	
}
